package org.umss.fixturebuilder.builder.model;

import java.util.LinkedList;
import java.util.List;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author Daniela Meneses
 */
@XmlRootElement
public class Round {

    private List<Game> games;

    public Round() {
        this.games = new LinkedList<Game>();
    }

    public Round(List<Game> games) {
        this.games = games;
    }

    public List<Game> getGames() {
        return games;
    }

    public void setGames(List<Game> games) {
        this.games = games;
    }

    public void addGame(Game game) {
        games.add(game);
    }

    @Override
    public String toString() {
        return "    Round{\n" + games + "   }\n";
    }
}
